<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Guest Viewer</title>
<base href="{$info.url}">

<style type='text/css'><!--
.textstyle {font-size: 14px; FONT-FAMILY: Arial, Helvetica, sans-serif; }
a:link {FONT-WEIGHT: normal; FONT-SIZE: 14px; COLOR: #0033CC; FONT-FAMILY: Arial, Helvetica, sans-serif; text-decoration: none;}
a:visited {FONT-WEIGHT: normal; FONT-SIZE: 14px; COLOR: #0033CC; FONT-FAMILY: Arial, Helvetica, sans-serif; text-decoration: none;}
a:hover {FONT-WEIGHT: bold; FONT-SIZE: 14px; COLOR: #005046; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-DECORATION: underline}
a:active {FONT-WEIGHT: normal; FONT-SIZE: 14px; COLOR: #005046; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-DECORATION: underline}
--></style>
<script LANGUAGE="JavaScript"><!--
function use_activex(x,y) {
  document.write('<OBJECT name="XSockClient" ID="XSockClient1" WIDTH="'+x+'" HEIGHT="'+y+'" CLASSID="CLSID:856ACB65-7B1F-4085-94D9-72824D6266CF" CODEBASE="/chs/activex/activex.CAB#version=2,1,2,11">');
  document.write('<PARAM NAME="StreamLocation" VALUE="/cgi/sf.cgi">');
  document.write('<PARAM NAME="Authorization" VALUE="Z3Vlc3Q6Z3Vlc3Q=">');
  document.write('</OBJECT>');
}
function use_java(x,y) {
	document.write('<APPLET name="IPCam" archive="ipcam.jar" codeBase="/chs/java/" code="IPCamApplet.class" height="'+y+'" width="'+x+'">');
	document.write('<PARAM NAME="StreamLocation" VALUE="/cgi/sf.cgi">');
	document.write('<PARAM NAME="Authorization" VALUE="Z3Vlc3Q6Z3Vlc3Q=">');
	document.write('</APPLET>');
}
function use_sp(x,y) {
	document.write('<IMG name="IPCam" src="/cgi/sf.cgi" height="'+y+'" width="'+x+'"></IMG>');
}
function ShowApplet(qstr) {
if (qstr.indexOf("320")!=-1) 
    res=320;
else if (qstr.indexOf("160")!=-1)
    res=160;
else res=640;
if (qstr.indexOf("activex")!=-1) 
    mode="activex";
else if (qstr.indexOf("java")!=-1)
    mode="java";
else if (qstr.indexOf("sp")!=-1)
    mode="sp";
else mode="auto";
if (mode=="auto") {
if (navigator.userAgent.indexOf("MSIE") != -1) {
    if (res==640) use_activex(640,480); else if (res==160) use_activex(160,120); else use_activex(320,240);
} else {
    if (res==640) use_sp(640,480); else if (res==160) use_sp(160,120); else use_sp(320,240);
}
} else if (mode=="activex") {
	  if (res==640) use_activex(640,480); else if (res==160) use_activex(160,120); else use_activex(320,240);
} else if (mode=="java") {
    if (res==640) use_java(640,480); else if (res==160) use_java(160,120); else use_java(320,240);
} else if (mode=="sp") {
    if (res==640) use_sp(640,480); else if (res==160) use_sp(160,120); else use_sp(320,240);
}
  document.write('<font size=2><p align=center class="textstyle"><a href="/cgi/ichs?640&'+mode+'">640x480</a> <a href="/cgi/ichs?320&'+mode+'">320x240</a> <a href="/cgi/ichs?160&'+mode+'">160x120</a></p>');
  document.write('<p align=center class="textstyle"><a href="/cgi/ichs?'+res+'&activex">[Activex]</a> <a href="/cgi/ichs?'+res+'&java">[Java]</a> <a href="/cgi/ichs?'+res+'&sp">[Server Push]</a></p></font>');
}//--></script>
</head>
<body bgcolor="#99CCFF">
<p align=center>
<script LANGUAGE="JavaScript">
	ShowApplet("");
	if(!(document.getElementById("XSockClient1").Connect("", 0)))
		alert("Server connect error!");
</script>
</p>
<p align=center><a href="/">[HOME]</a></p>
</body></html>
<script language="javascript" for="XSockClient1"  event="OnResolutionChanged(w, h)">
	use_activex(w , h)
</script>
